#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <maincsv.h>
#include <QStandardItemModel>
#include <mycamera.h>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainCSV;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void Permission();

protected:
    void InputToTable();

private slots:
    void on_pushButton_clicked();
    void in_get_return_text(QString barcodeText);
    void on_action1_triggered();
    void on_action2_triggered();
    void on_action3_triggered();
    void on_lineEdit_returnPressed();
    void on_action4_triggered();
    void on_action6_triggered();
    void on_action5_triggered();
    void on_action7_triggered();
    void on_action8_triggered(bool checked);
    void on_action9_triggered(bool checked);

    void on_tabWidget_currentChanged(int index);

private:
    Ui::MainWindow *ui;
    MyCamera myCamera;
    QStandardItemModel *standItemModel;
    MainCSV mainCSV;        // csv文件类
    int enterNum=0;
};
#endif // MAINWINDOW_H
